Skip to content

Feat/add users infra#67

Open
r0liveir wants to merge 28 commits into
mainfrom
feat/add-users-infra
Open

Feat/add users infra#67
r0liveir wants to merge 28 commits into
mainfrom
feat/add-users-infra

Conversation

@r0liveir

Copy link
Copy Markdown
Contributor

This PR introduces many things, but mainly:

  • supabase/ folder with supabase support for local development (CURRENTLY NOT IMPLEMENTED WITH DOCKER COMPOSE)
  • conference, committee, etc DB models on the first migration file.
  • auth/, access/ and core/ domains on the backend
  • rework some backend code to feature Depends Dep. Injection instead of a Factory pattern
    • this also adds a new dep.py file for dependency injections on the backend
  • protected session routes (create planned session, activate planned session, websocket session now sends a token as the first message to check if user has a committee assignment, etc)
  • additional layer for the backend architecture, now the separation is:
    views: API endpoints
    service: app orchestration, data validation, etc
    repository: DB queries with raw SQL
  • many changes on current code (like schemas, etc)
  • do keep in mind conference/ domain is not implemented yet. but seeded data exists on the database

as for the frontend work:

  • add supabase client. We'll use this to connect to supabase auth api and login users
  • context for storing user data (access tokens, refresh tokens, etc)
  • apiFetch wrapper to send tokens with each request to the backend endpoints
  • many fixes
  • mostly conscious vibe coding

What remains:

  • test overall authing on session page
  • add a conference/ domain + endpoints on the backend and proper pages on the frontend
  • improve current session creation
  • improve session snapshot save to database
  • document code
  • replace delegation with representation
  • improve frontend pages
  • do integration tests for the session part

r0liveir and others added 20 commits July 19, 2026 21:49
this commit introduces supabase support, initially through supabase's cli, which should support normal postgresql activity + auth capabilities

it also introduces the auth/ and access/ domains on the backend

auth/ is used for validating issued JWT tokens and check if users are validated to do something. so, it just validates a token

access/ is used to check if a given token has access to a session. can also be used to check if the user's role is chair/delegate, etc

core/ defines initial config we'll use, such as supabase db url and jwt secrets

do keep in mind all of this, currently, breaks frontend and backend integration (for the better)
this changes old XyzRepository/Service pattern to something that is more common on fastapi/go ecossystems
… component to fastapi

Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
@r0liveir r0liveir added this to the Session Page milestone Jul 21, 2026
@r0liveir r0liveir self-assigned this Jul 21, 2026
@r0liveir
r0liveir marked this pull request as ready for review July 22, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant